package com.wgzx.modbus.serialize;

import io.netty.buffer.ByteBuf;

public interface Serialization<REQ, RSP> {
    void serialize(REQ msg, ByteBuf byteBuf);

    RSP deserialize(ByteBuf byteBuf);
}
